home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / strip.doc < prev    next >
Text File  |  1986-09-27  |  590b  |  39 lines

  1.  
  2.  
  3.         NAME
  4.                 strip -- strip a newline from a string
  5.  
  6.         SYNOPSIS
  7.                 void strip(str);
  8.                 char *str;
  9.  
  10.  
  11.         DESCRIPTION
  12.         If the specified string terminates with a newline (\n)
  13.         character, this function will replace the character with
  14.         a NULL.
  15.  
  16.  
  17.  
  18.         EXAMPLE
  19.  
  20.                 char str[] = "This is a string\n";
  21.                 strip(str);
  22.                    the newline is stripped from str
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.         This function is found in SMDLx.LIB for the Datalight Compiler
  39.